//
//  AView.h
//  Study1
//
//  Created by ChenJie on 2/7/20.
//  Copyright © 2020 OrgName. All rights reserved.
//

#import <UIKit/UIKit.h>

@class AView;

@protocol AViewDelegate <NSObject>

@optional

- (void)AViewLeftButtonWillClick:(AView *)view;
- (void)AViewLeftButtonDidClick:(AView *)view;

- (void)AViewRightButtonDidClick:(AView *)view;

- (void)AView:(AView *)view frameDidChange:(CGRect)frame;

//
- (UIImage *)iconForAview:(AView *)view;

@end


@interface AView : UIView

@property (nonatomic, weak) id<AViewDelegate> delegate;


//- (void)goLeft;
//
//- (void)goRight;

@end


